From e68e8c51d2eb0a5dcab076bc3a74271c4da3e73f Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Wed, 19 Oct 2005 18:18:30 +0100 Subject: [PATCH] This patch fixes the problem that VMX guest can not get brought up on current tip (changeset 7425). Signed-off-by: Xin Li --- tools/python/xen/lowlevel/xc/xc.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c index b264615b3f..e4855158b6 100644 --- a/tools/python/xen/lowlevel/xc/xc.c +++ b/tools/python/xen/lowlevel/xc/xc.c @@ -424,11 +424,11 @@ static PyObject *pyxc_vmx_build(PyObject *self, unsigned long store_mfn = 0; static char *kwd_list[] = { "dom", "control_evtchn", "store_evtchn", - "memsize", "image", "flags", "vcpus", NULL }; + "memsize", "image", "vcpus", NULL }; - if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiisii", kwd_list, + if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiisi", kwd_list, &dom, &control_evtchn, &store_evtchn, - &memsize, &image, &flags, &vcpus) ) + &memsize, &image, &vcpus) ) return NULL; if ( xc_vmx_build(xc->xc_handle, dom, memsize, image, control_evtchn, @@ -968,12 +968,10 @@ static PyMethodDef pyxc_methods[] = { { "vmx_build", (PyCFunction)pyxc_vmx_build, METH_VARARGS | METH_KEYWORDS, "\n" - "Build a new Linux guest OS.\n" + "Build a new VMX guest OS.\n" " dom [int]: Identifier of domain to build into.\n" - " image [str]: Name of kernel image file. May be gzipped.\n" - " memmap [str]: Memory map.\n\n" - " ramdisk [str, n/a]: Name of ramdisk file, if any.\n" - " cmdline [str, n/a]: Kernel parameters, if any.\n\n" + " image [str]: Name of VMX loader image file.\n" + " vcpus [int, 1]: Number of Virtual CPUS in domain.\n\n" "Returns: [int] 0 on success; -1 on error.\n" }, { "bvtsched_global_set", -- 2.30.2